package com.sport.model.vo;


import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Objects;

/**
 *  后端的出参
 */

@Data
public class LoginVo {
    @Schema(description = "账号")
    public String username;
    @Schema(description = "密码")
    public String password;

    @Override
    public boolean equals(Object o) {
        if (o == null || getClass() != o.getClass()) return false;
        LoginVo loginVo = (LoginVo) o;
        return Objects.equals(username, loginVo.username) && Objects.equals(password, loginVo.password);
    }

    @Override
    public int hashCode() {
        return Objects.hash(username, password);
    }
}
